package vehicleEntity;

import java.text.NumberFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

import validator.Validator;
import javafx.beans.property.SimpleDoubleProperty;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.scene.input.DataFormat;

public class VehicleDisplayable {

	private SimpleIntegerProperty vehicleID;
	private SimpleStringProperty RegNo;
	private SimpleStringProperty VIN;
	private SimpleStringProperty vehicleType;
	private SimpleStringProperty vehicleClass;
	private SimpleStringProperty vehicleName;
	private String movedOn;
	private SimpleDoubleProperty saleAmount;
	


	public VehicleDisplayable(int int1,String int2,String int3, String string1, String string2,
			String string3,String string4, double double1) {
		// TODO Auto-generated constructor stub
		vehicleID=new SimpleIntegerProperty(int1);
		RegNo= new SimpleStringProperty(int2);
		VIN= new SimpleStringProperty(int3);
		vehicleType=new SimpleStringProperty(string1);
		vehicleClass=new SimpleStringProperty(string2);		
		vehicleName=new SimpleStringProperty(string3);
		SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
		
		
		movedOn = string4; //date to be taken care //
		saleAmount = new SimpleDoubleProperty(Validator.formatDouble(double1));
		
	}

	public int getVehicleID() {
		return vehicleID.getValue();
	}

	public void setVehicleID(SimpleIntegerProperty vehicleID) {
		this.vehicleID = vehicleID;
	}

	public String getRegNo() {
		return RegNo.getValue();
	}

	public void setRegNo(SimpleStringProperty regNo) {
		RegNo = regNo;
	}

	public String getVIN() {
		return VIN.getValue();
	}

	public void setVIN(SimpleStringProperty vIN) {
		VIN = vIN;
	}

	public String getVehicleType() {
		return vehicleType.getValue();
	}

	public void setVehicleType(SimpleStringProperty vehicleType) {
		this.vehicleType = vehicleType;
	}

	public String getVehicleClass() {
		return vehicleClass.getValue();
	}

	public void setVehicleClass(SimpleStringProperty vehicleClass) {
		this.vehicleClass = vehicleClass;
	}

	public String getVehicleName() {
		return vehicleName.getValue();
	}

	public void setVehicleName(SimpleStringProperty vehicleName) {
		this.vehicleName = vehicleName;
	}

	//Date has to be taken care ************* //
	public String getMovedOn() {
		return movedOn.toString();
				}

	public void setMovedOn(String movedOn) {
		this.movedOn = movedOn;
	}

	public double getSaleAmount() {
		return saleAmount.getValue();
	}

	public void setSaleAmount(SimpleDoubleProperty saleAmount) {
		this.saleAmount = saleAmount;
	}
	
	
	
}
